// 语音播报模板api
import request from '@/utils/request'

// 获取语音播报模板
export function getVoiceBroadcast(params) {
  return request({
    url: '/qbs/voiceBroadcast/list',
    method: 'get',
    params
  })
}
// 删除语音播报模板
export function deleteVoiceBroadcast(id) {
  return request({
    url: `/qbs/voiceBroadcast/remove/${id}`,
    method: 'delete'
  })
}
// 修改语音播报模板
export function editVoiceBroadcast(data) {
  return request({
    url: '/qbs/voiceBroadcast/update',
    method: 'put',
    data
  })
}
// 新增语音播报模板
export function saveVoiceBroadcast(data) {
  return request({
    url: '/qbs/voiceBroadcast/save',
    method: 'post',
    data
  })
}
// 前奏音上传
export function voiceUpload(data) {
  return request({
    url: '/qbs/voiceBroadcast/upload',
    method: 'post',
    data
  })
}
// 获取语音播报网络地址配置
export function getVoiceConfig() {
  return request({
    url: '/system/network/getSocketAddress',
    method: 'get',
  })
}



